<template>
  <a-config-provider :locale="locale">
    <template #renderEmpty>
      <div style="text-align: center">
        <Empty />
      </div>
    </template>
    <router-view />
  </a-config-provider>
</template>
<script lang="ts" setup>
import locale from 'ant-design-vue/es/locale/zh_CN'
import Empty from '@/components/components/empty/Empty.vue'
import { onMounted, provide } from 'vue'
// provide('baseUrl', import.meta.env.VITE_BASE_URL)
provide('baseUrl', window.location.origin)
// 拖拽文件上传时阻止浏览器默认事件
const forbidden = () => {
  document.addEventListener(
    'drop',
    (e) => {
      e.preventDefault()
    },
    false
  )
  document.addEventListener(
    'dragover',
    (e) => {
      e.preventDefault()
    },
    false
  )
}
onMounted(() => {
  forbidden()
})
</script>
<style lang="less">
#app {
  // c w-screen h-screen;
  // @apply w-screen;
  // min-height: auto;
}
</style>
